package com.imooc.dto;

import com.fasterxml.jackson.annotation.JsonView;

public class User {
    public interface SimpleViewUser {
    }

    public interface DetailViewUser extends SimpleViewUser {
    }

    private String username;

    private String password;

    @JsonView(SimpleViewUser.class)
    public String getUsername() {
        return username;
    }


    public void setUsername(String username) {
        this.username = username;
    }

    @JsonView(DetailViewUser.class)
    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }
}
